require(['./config'], () => {
    require(['swiper', 'header', 'footer'], (Swiper) => {
      class Index {
        constructor () {
          console.log(Swiper)
          this.banner()
        }
        banner () {
          var mySwiper = new Swiper('.swiper-container', {
            autoplay: 3000,//可选选项，自动滑动
            // direction : 'vertical', // 垂直切换
            speed:1000,
            pagination : '.swiper-pagination',
            prevButton:'.swiper-button-prev',
            nextButton:'.swiper-button-next',
            loop: true,
            //设置轮播的切换效果
            // effect : 'cube'
          })
        }
      }
      new Index()
    })
  })